package com.lijinjiang.servlet;

import javax.servlet.*;
import javax.servlet.annotation.WebServlet;
import java.io.IOException;

/**
 * @ClassName Demo03
 * @Description Servlet 方法介绍
 * @Author Li
 * @Date 2022/9/24 11:57
 * @ModifyDate 2022/9/24 11:57
 * @Version 1.0
 */
@WebServlet("/demo03")
public class Demo03 implements Servlet {
    private ServletConfig config;

    @Override
    public void init(ServletConfig servletConfig) throws ServletException {
        config = servletConfig;
    }

    @Override
    public ServletConfig getServletConfig() {
        return config;
    }

    @Override
    public void service(ServletRequest servletRequest, ServletResponse servletResponse) throws ServletException, IOException {
        System.out.println(config);
    }

    @Override
    public String getServletInfo() {
        return null;
    }

    @Override
    public void destroy() {

    }
}
